package com.ruoyi.room.service.impl;

import com.ruoyi.pojo.TbBuildingRoom;
import com.ruoyi.pojo.TbRoom;
import com.ruoyi.room.mapper.TbRoomMapper;
import com.ruoyi.room.service.ITbRoomService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 房间表 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-08-29
 */
@Service
public class TbRoomServiceImpl extends ServiceImpl<TbRoomMapper, TbRoom> implements ITbRoomService {
@Autowired
    TbRoomMapper roomMapper;

    @Override
    public  List<TbBuildingRoom>  getAll(Integer id) {
        return roomMapper.getAll(id);
    }
}
